package c.f.d.a.a.a.d;

import java.security.SecureRandom;

public class a {
    public static byte[] a(int i) {
        try {
            byte[] bArr = new byte[i];
            new SecureRandom().nextBytes(bArr);
            return bArr;
        } catch (Exception e) {
            StringBuilder g = c.b.a.a.a.g("generate secure random error");
            g.append(e.getMessage());
            c.f.a.a.a.a.m("EncryptUtil", g.toString());
            return new byte[0];
        }
    }

    public static String b(int i) {
        return c.f.a.a.a.a.e(a(i));
    }
}
